package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.domain.ReservationSetting;
import com.jzo2o.health.model.dto.request.ReservationSettingUpsertReqDTO;
import com.jzo2o.health.model.dto.response.ReservationDateResDTO;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 预约设置 服务类
 * </p>
 *
 * @author author
 * @since 2024-12-14
 */
public interface IReservationSettingService extends IService<ReservationSetting> {

    /**
     * 根据月份查询预约设置
     * @param date 月份，格式：yyyy-MM
     */
    List<ReservationSettingResDTO> getReservationSettingByMonth(String date);

    /**
     * 编辑预约设置
     * @param reservationSettingUpsertReqDTO
     */
    void editNumberByDate(ReservationSettingUpsertReqDTO reservationSettingUpsertReqDTO);

    /**
     * 批量添加预约设置
     * @param file
     */
    void batchInsert(MultipartFile file);

    /**
     * 用户端查询可预约日期
     * @param month
     * @return
     */
    ReservationDateResDTO getEnableDate(String month);
}
